package tests;

public class SimpleTunableIrrigator implements TunableIrrigator {

	@Override
	public void set(int percentValue) {
		System.out.println(toPerc(percentValue));
	}

	private int toPerc(int i) {
		if (i<0) {
			return 0;
		}
		if (i>100) {
			return 100;
		}
		return i;
	}

}
